#ifndef __UART1_H__
#define __UART1_H__
#define BUFFER_SIZE 10
// STM32外设库头文件
#include "stm32f10x.h" 
#include <stdio.h>
#include <stdarg.h>
#include "freertos.h"
#include "task.h"
#include "queue.h"



typedef enum{
		UNCOMPLETED,
	  COMPLETED
}ReceiveStatus;

void USART1_Init(void);
void USART2_Init(void);
void USART3_Init(void);
//接收PC端发的一个字节
uint8_t USART1_ReceiveByte(void);

//接收PC端发来的字符串
ReceiveStatus ReceiveByteStr(uint8_t *BUFFER);

// 发送字节
void USART1_SendByte(uint8_t Byte);


void USART2_SendByte(uint8_t Byte);

void USART3_SendByte(uint8_t Byte);

void printf1(char *format, ...);

void printf2(char *format, ...);

void printf3(char *format, ...);

#endif
